//
//  H_Rate.h
//  AccuroFit
//
//  Created by Yongfeng Li on 9/9/15.
//  Copyright (c) 2015 Nci Technology Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

//@class NSManagedObject;

@interface H_Rate : NSManagedObject

@property (nonatomic, retain) NSNumber * bodyId;
@property (nonatomic, retain) NSDate * hEnterDate;
@property (nonatomic, retain) NSDate * hEndDate;
@property (nonatomic, retain) NSNumber * hRateId;
@property (nonatomic, retain) NSNumber * bMemory;
@property (nonatomic, retain) NSNumber * actType;
@property (nonatomic, retain) NSString * actComm;
@property (nonatomic, retain) NSNumber * nLastUpdIdx;
@property (nonatomic, retain) NSNumber * nSyncType;
@property (nonatomic, retain) NSManagedObject *hRateItems;

@end

@interface HrateMeasData : NSObject

@property(retain) NSString* sMeasDate;
@property(assign) short nRateIdx;
@property(assign) float fRateTime;
@property(assign) float fCalories;
@property(assign) float dDatePos;

-(void) formHrateData:(NSString *)dtMeas rateIdx:(short)nIdx dTime:(float)fTime calory:(float)fCalory;

@end
